//
// Created by 束庆乐 on 2025/1/7.
//
#include "iostream"
#include "vector"
using namespace std;

void test(){

    vector<int> v;
    v.reserve(100000);
    int num = 0;
    int* p = NULL;
    for (int i = 0; i < 100000; ++i) {
        v.push_back(i)  ;
        if(p != &v[0]){
            p = &v[0];
            num++;
        }
    }
    cout << "num=" << num << endl;
}

int main123(){
    test();
    return 0;
}